package gui.jquery.chrono.views;




import gui.jquery.legend.core.AxisType;

import javax.swing.JPanel;
import javax.swing.border.TitledBorder;

import data.Data;


/**
 * 
 * @author MAMATU
 *
 */
@SuppressWarnings("serial")
public class ChronoLegendPanel extends JPanel {

	private ChronoAxisPanel axisX,axisY;
	private ChronoDisplayPanel displayPanel;
	private ChronoSliderPanel sliderPanel;
	
	
	/**
	 * Get and Set
	 */
	
	public ChronoAxisPanel getAxisPanelX() {return axisX;}
	public ChronoAxisPanel getAxisPanelY() {return axisY;}
	public ChronoDisplayPanel getDisplayPanel() {return displayPanel;}
	public ChronoSliderPanel getSliderPanel() {return sliderPanel; }
	
	
	
	/**
	 * Create the panel.
	 */
	public ChronoLegendPanel() {
		setLayout(null);
		
		

		
		JPanel olapPanel = new JPanel();
		olapPanel.setBorder(new TitledBorder(null, "OLAP Exploration", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		olapPanel.setBounds(462, 11, 934, 266);
		add(olapPanel);
		olapPanel.setLayout(null);
		
		axisX = new ChronoAxisPanel();
		axisX.setBounds(10, 29, 451, 75);
		olapPanel.add(axisX);

		
		
		axisY = new ChronoAxisPanel();
		axisY.setBounds(471, 29, 451, 75);
		axisY.setAxisType(AxisType.AXE_Y);
		olapPanel.add(axisY);

		
		sliderPanel = new ChronoSliderPanel();
		sliderPanel.setBounds(10, 115, 912, 140);
		olapPanel.add(sliderPanel);
	
		
		
		displayPanel = new ChronoDisplayPanel();
		displayPanel.setBounds(10, 11, 444, 266);
		add(displayPanel);


	}
}
